const fs = require('fs');
const path = require('path');

// 定义窗口名称列表
const windows = ['main_window', 'login_window', 'register_window'];

// 源模板文件路径
const templatePath = path.resolve(__dirname, '../src/index.html');

// 遍历生成多个 html 文件
windows.forEach((win) => {
  const destPath = path.resolve(__dirname, `../src/${win}.html`);
  fs.copyFileSync(templatePath, destPath);
  console.log(`[✔] Generated: ${destPath}`);
});
